; int a = 0
add $8, $0, $0
; int i = 0
add $9, $0, $0
; i < 10
sw 0($29),$8
loop: sw 4($29), $9
subi $10, $9, 10
beqz $10, break
; i % 2
andi $11, $9, 1
bnez $11, else1
; a += i
add $8, $8, $9
; a > 11
else1: subi $12, $8, 12
sw 0($29),$8
beqz $12, break
; ++i
addi $9, $9, 1
beqz $0, loop
break: sw 4($29), $9
